package com.pine.manager.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * 密文配置属性
 *
 * @author pine manage
 * @since 2024-08-14
 */
@Data
@ConfigurationProperties(prefix = CipherProperties.PREFIX)
public class CipherProperties {
    public static final String PREFIX = "pine.manager.cipher";

    /**
     * AES配置
     */
    private AES aes;

    @Data
    public static class AES {
        /**
         * 密钥 SaSecureUtil.aesDecrypt(key, text)
         */
        private String key;
    }
}
